﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics.CodeAnalysis;

namespace EasyDDD.Domain
{
    public interface IKey
    {

    };
    public interface IKey<out T> : IKey
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Column(Order = 0)]
        [NotNull]
        T Value { get; }
    }
}
